package vip.xiaonuo.modular.sync;

import org.springframework.context.ApplicationEvent;

public class BuildingAddEvent extends ApplicationEvent {

    private Long deviceId;

    public BuildingAddEvent(Object source) {
        super(source);
    }

    public BuildingAddEvent(Object source, Long buildingId, Long deviceId) {
        super(source);
        this.deviceId = deviceId;
    }

    public Long getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(Long deviceId) {
        this.deviceId = deviceId;
    }
}
